{extend name="common/main"}

{block name="head"}

{include file="common/head"}

{/block}

{block name="content"}

<link href="__STATIC__/home/css/pharmacy.css" rel="stylesheet" type="text/css" />

<div class="contentmain"> 
  <!--tile-->
  <div class="tszl_title">
    <h3>当前位置：<a href="{:url('home/index/index')}">首页</a><span>></span>药品库</h3>
  </div>
  <div class="sub_con">
    <div class="tszl_sub"> <span class="tszl_big">药品库</span><span class="tszl_small">PHARMACY WAREHOUSES</span> </div>
    <div class="tszl_sx">
      <!-- <div class="search_results">
        <a href="{:url('home/characteristic/index')}">全部</a>><span>{notempty name="kw"}"{$kw}"{else /}{$kw}{/notempty}</span>共<b>{$snum|default=0}</b>个 药品
      </div> -->
      <div class="tszl_xx_left Fleft">
        <div class="tszl_xx_title">
          <h3>云南 共有 <b>{$allNums}</b> 个</h3>
        </div>
        <div class="tszl_xx_list">
          <ul>
            {volist name="itemAreas" id="vo" offset="" length="" empty=""}
            <a href="{:url('home/'.$controller.'/index')}?cid={$vo['area_id']}">
            <li>{$vo.area_name} 共有 <b>{$vo.num}</b> 个</li>
            </a>
            {/volist}
          </ul>
        </div>
        <div class="hots_title mt10">
          <h3>热门推荐</h3>
        </div>
        <div class="hots_list">
          <ul>
            {volist name="recommend" id="vo" offset="0" length="3" empty="暂无数据"}
            <a href="javascript:;" class="pp" data-m="drug" data-id="{$vo.id}">
            <li>
              <div class="hots_list_pic"><img src="{$vo.thumb}"></div>
              <div class="hots_font">
                <h3>{$vo.title}</h3>
                <p>{$vo.desc}</p>
              </div>
            </li>
            </a>
            {/volist}
          </ul>
        </div>
      </div>
      <div class="tszl_xx_right Fright">
        <div id="page-search-store" class="border sxcon">
          <div class="search-by by-category relative">
            <dl class="relative clearfix">
              <dt class="Fleft"><a href="javascript:;">按分类：</a></dt>
              <dd class="Fleft show-con">
                  <a href="{:url('home/drug/index')}?cid=&nid={:input('nid')}&did={:input('did')}&kw={:input('kw')}">
                    <span {empty name="cid"}class="search_float"{/empty}>不限</span>
                  </a>
                  {volist name="drugCateList" id="vo" empty=""}
                  <a href="{:url('home/drug/index')}?cid={$vo['id']}&nid={:input('nid')}&did={:input('did')}&kw={:input('kw')}">
                    <span {eq name="cid" value="$vo.id"}class="search_float"{/eq}>{$vo.title}</span>
                  </a>
                  {/volist}
              </dd>
              <dd class="Fright show-more">
                <h3 class="pointer clearfix">更多</h3>
              </dd>
            </dl>
            <dl class="relative clearfix" style="border-bottom:0">
              <dt class="Fleft"><a href="javascript:;">按民族：</a></dt>
              <dd class="Fleft show-con">
                  <a href="{:url('home/drug/index')}?nid=&cid={:input('cid')}&did={:input('did')}&kw={:input('kw')}">
                    <span {empty name="nid"}class="search_float"{/empty}>不限</span>
                  </a>
                  {volist name="nations" id="vo" empty=""}
                  <a href="{:url('home/drug/index')}?nid={$vo['id']}&cid={:input('cid')}&did={:input('did')}&kw={:input('kw')}">
                    <span {eq name="nid" value="$vo.id"}class="search_float"{/eq}>{$vo.title}</span>
                  </a>
                  {/volist}
              </dd>
              <dd class="Fright show-more">
                <h3 class="pointer clearfix">更多</h3>
              </dd>
            </dl>
            <dl class="relative clearfix" style="border-bottom:0">
              <dt class="Fleft"><a href="javascript:;">按疾病：</a></dt>
              <dd class="Fleft show-con">
                  <a href="{:url('home/drug/index')}?did=&cid={:input('cid')}&nid={:input('nid')}&kw={:input('kw')}">
                    <span {empty name="did"}class="search_float"{/empty}>不限</span>
                  </a>
                  {volist name="diseases" id="vo" empty=""}
                  <a href="{:url('home/drug/index')}?did={$vo['id']}&cid={:input('cid')}&nid={:input('nid')}&kw={:input('kw')}">
                    <span {eq name="did" value="$vo.id"}class="search_float"{/eq}>{$vo.title}</span>
                  </a>
                  {/volist}
              </dd>
              <dd class="Fright show-more">
                <h3 class="pointer clearfix">更多</h3>
              </dd>
            </dl>
          </div>
        </div>
        <div class="yp_list">
          <ul>
            {volist name="list" id="vo" offset="0" length="" empty="暂无数据"}
            <li>
                <div class="mz_pic">
                    <a href="javascript:;" class="pp" data-m="drug" data-id="{$vo.id}"><img src="{$vo.thumb}"></a>
                </div>
                <div class="yp_font">
                    <h3><a href="javascript:;" class="pp" data-m="drug" data-id="{$vo.id}">{$vo.title}</a></h3>
                    <p><a href="javascript:;" class="pp" data-m="drug" data-id="{$vo.id}">{$vo.desc}</a></p>
                </div>
            </li>
            {/volist}
          </ul>
        </div>
        <!-- <div class="tcdPageCode"></div> -->
        <div class="page">{$page}</div>   
        <style type="text/css">
          .page .pagination {position:inherit;display: inline-block; padding-left: 0; margin: 20px 0 0px; border-radius: 4px; }
          .page .pagination>li {display: inline;}
          .page .pagination>li>a, .page .pagination>li>span {position: relative; float: left; padding: 6px 12px; margin-left: -1px; line-height: 1.42857143; color: #78201f; text-decoration: none; background-color: #fff; border: 1px solid #ddd; cursor: pointer; margin: 0 2px;}
          .page .pagination>.active span{z-index: 3; color: #fff; cursor: default; background-color: #78201f; border-color: #78201f;} .page .pagination>.disabled span{color: #bfbfbf; cursor: not-allowed; background-color: #fff; border-color: #ddd;} 
          .page .pagination>li>a:hover{background: #78201f; color: #fff;}
        </style>
      </div>
    </div>
  </div>
</div>

{/block}

{block name="footer"}

{include file="common/footer"}

{/block}

{block name="script"}

{include file="common/script"}

{/block}